package com.autumn.annotations.demos;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * ClassName: Config
 *
 * @Description:
 * @Author: wangqiuyang
 * @Date: 2021/12/15 下午8:26
 * History:
 * <author>          <time>          <version>          <desc>
 * wangqiuyang    2021/12/15 下午8:26   @Version 1.0        描述
 */
@Configuration
public class Config {



    @Bean(value = "personName")
    Person person() { // id 默认是方法名
        return new Person("叶秋蓉" , 26);
    }


}
